package com.aisile.admin.controller.v1;

import com.aisile.admin.service.AdUserService;
import com.aisile.apis.admin.AdloginControllerApi;
import com.aisile.model.admin.dtos.AdUserDto;
import com.aisile.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/login")
public class AdLoginController implements AdloginControllerApi {
    @Autowired
      private AdUserService adUserService;
    @PostMapping("/loginin")
    @Override
    public ResponseResult login(AdUserDto adUserDto) {
        return adUserService.login(adUserDto);
    }

}
